package day0729;

import java.util.Arrays;

public class Test6 {
    public static void main(String[] args) throws InterruptedException {
        String[] bullets={};
        while(true){
            Thread.sleep(1000);//休眠 0.08秒
            bullets=Arrays.copyOf(bullets,bullets.length+1);
            bullets[bullets.length-1]="子弹";
            System.out.println(bullets.length);
        }
    }
}




